package com.ruoyi.weixin.untils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;  
  
public class Main {  
    public static void main(String[] args) {  
        String str = "https://wolf-travel.oss-cn-beijing.aliyuncs.com/HongMeng/24/fren/dZ997aDZJiwZ7caa66c56248c3a4cde5c8efe8185c1c_1704634503530.jpg";  
        Pattern pattern = Pattern.compile("com/(.*)");
        Matcher matcher = pattern.matcher(str);
        if (matcher.find()) {
            String result = matcher.group(1);
            System.out.println(result);  // 输出 "oss-cn-beijing.aliyuncs"
        } else {
            System.out.println("No match found");
        }
    }  
}